<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head><title>Document</title></head>
<SCRIPT type="text/javascript">
		function selectAll(){	
			var _cb = document.getElementById('select_all');
			var checkboxes = document.getElementsByTagName("input");
			for(var i=0; i<checkboxes.length; i++){
				var checkbox = checkboxes[i];
				if(checkbox.id != 'select_all' && checkbox.type == 'checkbox'){
				 	checkbox.checked = _cb.checked;
				}
			}
		}
	
		
		function signSelectedDocument(){		
		document.unSignDocumentEdit.submit();		
		}
		function printSelectedDocument(){		
		alert("Are you sure to print these documents?");	
		}
	</SCRIPT>
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		background-color: #EEF2FB;
	}
	-->
	</style>
	<link href="../images/skin.css" rel="stylesheet" type="text/css" />
<body>
→List UnSigned Documents→&nbsp;&nbsp;&nbsp;all <s:property value="hospitalnosigned_totalRow" /> rows
								    &nbsp; the <s:property value="hospitalnosigned_currentPage" />th  page
								    &nbsp; all <s:property value="hospitalnosigned_pager.getTotalPages()" /> pages
								    &nbsp;
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td>
			 <table width="100%" border="0" cellpadding="0" cellspacing="0">
			 	<tr>
			 		<td width="17" valign="top" background="../images/mail_leftbg.gif"><img src="../images/left-top-right.gif" width="17" height="29" /></td>
				    <td valign="top" background="../images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				       <td>
				         <a href="<s:url value="listNoSignedHospitalDoc.action">
    			                   	 	<s:param name="hospitalnosigned_pagerMethod" value="'first'"/>
       								</s:url>">First</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'previous'"/>
    								</s:url>">Previous</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'next'"/>
    								</s:url>">Next</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'last'"/>
    								</s:url>">End</a>
				      &nbsp;&nbsp;
    								<input type="button" value="Print Selected" onclick="javascript:printSelectedDocument();"/>
    								</td>
				      </tr>
				    </table></td>
				    <td width="16" valign="top" background="../images/mail_rightbg.gif"><img src="../images/nav-right-bg.gif" width="16" height="29" /></td>
			 	</tr>
			 </table>
			</td>    
		</tr>
		<tr>
			<td>
				<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F8F9">
						<thead>
							<tr>
								<th width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></th>
								<th align=left>	
									 <input id="select_all" type="checkbox" onclick="selectAll();">
								</th>
								<th align="left">
									Patient
								</th>
								<th align="left">
									Doctor Name
								</th>
								<th align="left"> 
									Creation Time
								</th>
							    <th align="left"> 
									Received Time
								</th>
								<th align="left"> 
									Elapsed  time
								</th>
								<th width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="hospitalnosigned_documents" status="st">
								<s:if test="#st.Odd">
								<tr bgcolor="#dde9f5">													
								</s:if>
								<s:else>
									<tr>					
								</s:else>
									<td width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></td>
									<td align="left">
											<input id="<s:property value="id" />" type="CheckBox">
									</td>
									<td align="left">
										<a href='../document/showUnsignHospitalDocumentFirst.action?id=<s:property value="id"/>&type=unsign'><s:property value="Patient" /> </a>
									</td>
									<td align="left">
										<s:property value="detailUserByUserId.familyName" />
									</td>
									<td align="left">
										<s:property value="createTime" />
									</td>
									 <td align="left">
								      <s:property value="operateTime" />										
									</td>
									 <td align="left">
								     <s:date name="createTime" format="yyyy-MM-dd HH:mm:ss" nice="true" />		
									</td>
									<td width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></td>									 
								</tr>
							</s:iterator>
							<tr align="left">
								<td width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></td>
								<td colspan="6">
								   <a href="<s:url value="listNoSignedHospitalDoc.action">
    			                   	 	<s:param name="hospitalnosigned_pagerMethod" value="'first'"/>
       								</s:url>">First</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'previous'"/>
    								</s:url>">Previous</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'next'"/>
    								</s:url>">Next</a>&nbsp;&nbsp;
									<a href="<s:url value="listNoSignedHospitalDoc.action">
    									<s:param name="hospitalnosigned_pagerMethod" value="'last'"/>
    								</s:url>">End</a>
								</td>
								<td width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></td>
							</tr>

						</tbody>
					</table>
			</td>
		</tr>
		<tr>
			<td>
			 <table width="100%" border="0" cellpadding="0" cellspacing="0">
			 	<tr>
			 		<td width="17" valign="top" background="../images/mail_leftbg.gif"><img src="../images/buttom_left2.gif" width="17" height="17" /></td>
				    <td valign="top" background="../images/buttom_bgs.gif"><img src="../images/buttom_bgs.gif" width="17" height="17"></td>
				    <td width="16" valign="top" background="../images/mail_rightbg.gif"><img src="../images/buttom_right2.gif" width="16" height="17" /></td>
			 	</tr>
			 </table>
			</td>    
		</tr>
	</table>
</body>
</html>
